<a href="<%= photo.public_filename(:small) %>" rel="lightbox[album]" title='<%= link_to 'Full Size', photo.public_filename %>'>
   <%= image_tag photo.public_filename(:thumb) %>
</a>